from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('reviews.views',
    # Example:
    # (r'^dishpop/', include('dishpop.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

	(r'^$', 'index'),
	(r'^tag/(?P<tag_id>\d+)/$', 'tag'),
    #(r'^user/(?P<user_name>\w+)/$', 'user_page'),
	(r'^dish/(?P<dish_id>\d+)/$', 'dish'),
	(r'^dish/(?P<dish_id>\d+)/addphoto$', 'upload_photo'),
    (r'^place/(?P<place_slug>[a-z0-9-]+)/$', 'place_page'),
    (r'^submit$', 'submit_dish'),
    (r'^submit/$', 'submit_dish'),
    (r'^submit/tags/(?P<dish_id>\d+)/$', 'edit_tags'),
    (r'^submit/(?P<dish_id>\d+)$', 'submit_review'),
    (r'^delete/$', 'delete_review_or_image'),
    (r'^search/$', 'search_page'),
    (r'^logout/$', 'logout_page'),
)